import request from '@/utils/request'

// 查询首页轮播配置列表
export function listAppBanner(query) {
  return request({
    url: '/app/manager/appBanner/list',
    method: 'get',
    params: query
  })
}

// 查询首页轮播配置详细
export function getAppBanner(id) {
  return request({
    url: '/app/manager/appBanner/' + id,
    method: 'get'
  })
}

// 新增首页轮播配置
export function addAppBanner(data) {
  return request({
    url: '/app/manager/appBanner',
    method: 'post',
    data: data
  })
}

// 修改首页轮播配置
export function updateAppBanner(data) {
  return request({
    url: '/app/manager/appBanner',
    method: 'put',
    data: data
  })
}

// 删除首页轮播配置
export function delAppBanner(id) {
  return request({
    url: '/app/manager/appBanner/' + id,
    method: 'delete'
  })
}
